	<form action="{$appCore->prepareUrl("index.php?pid=adminpanel/user/")}" method="post">
		<fieldset>
			<legend>Szukaj pacjenta</legend>
			<label for="[user][pesel]">PESEL (można podawać kilka peseli oddzielonych przecinkami)<input type="text" name="user_pesel" id="[user][pesel]" /></label>
			<label for="[user][imie]">Imię <input type="text" name="user_imie" id="[user][imie]" /></label>
			<label for="[user][nazwisko]">Nazwisko <input type="text" name="user_nazwisko" id="[user][nazwisko]" /></label>
			<label for="[user][email]">E-mail <input type="text" name="user_email" id="[user][email]" /></label>
			<input type="hidden" name="user_search" value="true" />
			<input type="submit" value="Szukaj" class="submit" />
		</fieldset>
	</form>
	<table>
		<tr><th>PESEL</th><th>Imię</th><th>Naziwsko</th><th>E-mail</th><th>Telefon</th><th></th></tr>
		{foreach from=$userData item=user name=users}
		<tr><td>{$user.pesel}</td><td>{$user.imie}</td><td>{$user.nazwisko}</td><td>{mailto address=$user.email}</td><td>{$user.telefon}</td><td class="details"><a href="{$appCore->prepareUrl("index.php?pid=adminpanel/user/show/details/user/$user[0]/")}"><img src="{$smarty.const.BASEDIR}img/arrow-medium-green.png" alt="Więcej" /></a></td></tr>
		{foreachelse}
		<tr><td colspan="7">Brak wyników wyszukiwania</td></tr>
		{/foreach}
	</table>
	{section name=foo start=1 loop=$pages}
	{assign var=offset value=$smarty.section.foo.index}
		  <span class="pagenum"><a href="{$appCore->prepareUrl("index.php?pid=adminpanel/user/offset/$offset/")}">{$smarty.section.foo.index}</a></span>
	{/section}